package com.ruoyi.resource.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 *  好友
 *
 * @author OpenACloud
 * @create 2024/6/9 20:11
 */
public interface FriendMapper {

    /**
     *  根据我的ID查询我的好友
     *
     * @param userId
     * @return
     */
    Set<Long> findMeFriend(Long userId);

    /**
     *  添加好友
     *
     * @param receiveId
     */
    void addFriend(@Param("sendId") Long sendId, @Param("receiveId")Long receiveId, @Param("receiveName")String receiveName);

    /**
     *  删除好友
     *
     * @param sendId
     */
    void deleteFriend(@Param("sendId")Long sendId, @Param("receiveId")Long receiveId);
}
